<template>
  <section class="header">
<!--    <h2 class="title">广知科技AI可视化平台</h2>-->
    <span class="time">{{ time }}</span>
  </section>
</template>

<script setup name="Header">
import { onMounted, ref, watch } from 'vue'
import dayjs from 'dayjs';


let time = ref(dayjs().format('YYYY-MM-DD HH:mm:ss'))


onMounted(() => {
  setInterval(() => {
      time.value = dayjs().format('YYYY-MM-DD HH:mm:ss')
  },1000)
})
</script>

<style scoped lang="scss">
.header {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  width: 100%;
  height: 8%;
  font-size: 24px;
  z-index: 10;
  background: url('@/assets/images/title.png') no-repeat center;
  background-size: contain;
  color: #ffffff;

  .title {
    letter-spacing: 10px;
    //font-family: cursive;
    font-weight: bold;
  }
  .time {
    position: absolute;
    right: 91px;
    top: 32px;
    font-size: 24px;
    font-family: pangmen;
    letter-spacing: 1px;
  }
}
</style>
